package com.mars.tukuan.dto;

import java.util.Map;

import com.mars.base.common.utils.date.DateUtil;
import com.mars.tukuan.entity.CarUser;
import com.mars.tukuan.utils.TimeUtils;


public class CarUserVo extends CarUser {

	private static final long serialVersionUID = 1L;

	// 最近操作时间
	private String opatorTime;

	public String getOpatorTime() {
		// 计算车况逾期时间
		if (null != this.getCheckTime()) {
			Map<String, Long> d = TimeUtils.dateDiff(DateUtil.formatDateTime(this.getCheckTime()), DateUtil.getDateTime(), "yyyy-MM-dd HH:mm:ss") ;
			this.opatorTime = d.get("day").toString() + "天" + d.get("hour").toString() + "时" + d.get("min").toString() + "分" + d.get("sec").toString() + "秒" ;
		}

		return opatorTime;
	}

	public void setOpatorTime(String opatorTime) {
		this.opatorTime = opatorTime;
	}

}
